Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delivery of all points requested in the challenge #105

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

ribshow
Copy link

@ribshow ribshow commented Dec 15, 2024

The API docs is available at the following address:

https://backend-wiredcraft.vercel.app/api/docs/

Cloning project

git clone https://github.com/ribshow/backend-wiredcraft

Install dependencies

npm install

Remove comment on .env

NODE_ENV_TEST="test"

In the server.ts comment on the lines 76 to 81:

/*
app.listen(port, () => {
  console.log(`Server is running on ${port}`);
});
*/
//module.exports = app;

Build the project

npm run build

Run the tests

npm test

Included routes and set connection with database mongodb
Json web token included to authenticate users
Logout included to users
Included the endpoint to user to change your password
Profile included to users, is possible to send friendship invite and accept invite
Included the endpoint to verify the distance between user and your friends
Included initial tests with jest
New tests includeds to user profile
Finishing tests in endpoint profile/nearby
Included documentation to api, available in localhost:3000/api/docs
Included vercel.json to deploy api in vencer
version 2
update vercel.json
Deploy complete to vercel
Fix endpoint auth/register
New end-point, /save-location/id, in this endpoint the user's location is fetched through their ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant